<script>
export default {
  name:'小计组件',
  props: {
    price: Number,
    amount: Number,
  }
};
</script>

<template>
  <span class="sub-total">
    {{ price * amount }}
  </span>
</template>

<style>
.sub-total {
  flex-basis: 15%;
  text-align: center;
}
</style>
